class CreateComputersOperationsJoinTable < ActiveRecord::Migration
  def self.up
    create_table :computers_operations, :id => false do |t|
      t.references :computer, :operation # Pour créer les clés etrangères
    end
    add_index :computers_operations, [:computer_id, :operation_id] # Optionnel
  end

  def self.down
    drop_table :computers_operations
  end
end
